/**
 * jims
 */
package com.jims.master.modules.finance.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.jims.master.common.persistence.DataEntity;

/**
 * 挂号费用记录Entity
 * @author 赵宁
 * @version 2017-03-07
 */
public class RegistCost extends DataEntity<RegistCost> {
	
	private static final long serialVersionUID = 1L;
	private String clinicId;		// 门诊记录ID
	private String type;		// 费用类型
	private Double cost;		// 费用
	private String  subjCode;//核算科目
	
	public RegistCost() {
		super();
	}

	public RegistCost(String id){
		super(id);
	}

	@Length(min=1, max=64, message="门诊记录ID长度必须介于 1 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=1, max=10, message="费用类型长度必须介于 1 和 10 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@NotNull(message="费用不能为空")
	public Double getCost() {
		return cost;
	}

	public void setCost(Double cost) {
		this.cost = cost;
	}

	public String getSubjCode() {
		return subjCode;
	}

	public void setSubjCode(String subjCode) {
		this.subjCode = subjCode;
	}
}